const configBase = require("./webpack.config.base.js");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const webpackMerge = require("webpack-merge");
const path = require("path");

module.exports = webpackMerge(configBase, {
  entry: "./src/vr2d/js/index.js",
  output: {
    filename: "./../js/[name]-[contenthash].js",
    path: path.resolve("src/vr2d/vtour"),
  },
  module: {
    rules: [],
  },
  optimization: {},

  plugins: [
    new HtmlWebpackPlugin({
      template: "src/vr2d/tour.html",
      filename: "tour.html",
      minify: false
    }),
  ],
});
